/**
 * Date Created: Mar 14, 2009
 */
package forteresce.portprofile.profiles.bean;

/**
 * This bean represents the properties in a profile.
 * Please refer to http://kb.mozillazine.org/Profiles.ini_file
 * for how a firefox profile file looks like 
 * @author fortersce
 */
public class ProfileBeanImpl implements ProfileBean {

    private String name;
    private String isRelative;
    private String path;
    private String isDefault; //the property in the ini file is named default but as it is a keyword we are using isDefault instead

    /**
     * @return the isDefault
     */
    public String getDefault() {
        return isDefault;
    }

    /**
     * @param isDefault the isDefault to set
     */
    public void setDefault(String isDefault) {
        this.isDefault = isDefault;
    }
    
    /**
     * @return the isRelative
     */
    public String getIsRelative() {
        return isRelative;
    }
    
    /**
     * @param isRelative the isRelative to set
     */
    public void setIsRelative(String isRelative) {
        this.isRelative = isRelative;
    }
    
    /**
     * @return the name
     */
    public String getName() {
        return name;
    }
    
    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }
    
    /**
     * @return the path
     */
    public String getPath() {
        return path;
    }
    
    /**
     * @param path the path to set
     */
    public void setPath(String path) {
        this.path = path;
    }
    
    @Override
    public boolean equals(Object obj) {
    	if(obj instanceof ProfileBean) {
    		return ((ProfileBean) obj).getName().equals(name);
    	}
    	
    	return false;
    }
    
}
